Gravar-mail: Synaptic Learning Rules and Sparse Coding in a Model Sensory System