added validations for note model
added association tests for user, connection, note models
refactored connections controller, added integration spec helper