basic change to URIs

api -> v1 as URI prefix
remove the preceeding /users/id from all URIs
store the currently logged-in user in the session
factor our simple many-to-many code
add organization resource

- replace organization string on the user with a real resource
- add api for creating organizations and linking them to users
unused import
remove old defunt templates
add flush_db command
whitespace
fix long lines
declare query and as_dict as static methods
do not use flask.ext loader for pylint
add contributing info and a pylintrc