Create badge model and database migration file
Fixed datasets in dictionary representation of badge
Removed creator from dictionary representation (that's irrelevant)
Added badge controller with only an index page and the corresponding index template
Added route to badge index and made Badge class importable from openspending.model
Added possibility to create new badges and view individual badges.

For badge creation there two new helpers were created: get_object_upload_dir and get_uuid_filename to allow file uploads (badges are images).
get_object_upload dir gets or creates a new directory in the static directory based on an object's name.
get_uuid_filename takes in a filename and returns a uuid generated filename.
These two functions allow upload of data to the static directory to be structured (and avoids overwriting files)

The static function was also updated so that it can now generate the correct object directory (based on the object's name) in order to get the files related to objects.
Add a check so that only administrators can create badges (also add a check to see if a badge can be given to a specific dataset but that isn't being used anywhere yet)
Users can now view badges awarded to datasets (present in the navigation menu) and administrators can award badges to a dataset (form is made available on the about page).
Added tracking of badge information template
Changes to text on badge index page.
Enable json representation of badge index and badge information
Added a check to see if user is logged in before checking if the user is an admin. Also put the format routing of badge information above non-formatted so that it gets checked first.
When giving badges, we don't need to set the badge we're awarding as a template context variable
Add a short representation of the badge to each json (dictionary) representation of a dataset (and add badges to the dataset index page).
Dictionary/json representation of the badges now include fully qualified urls.
Modify routes so that index page/creation refer to the plural version of badge (badges)
Test cases for badges added.
Merge remote-tracking branch 'origin/master' into 554-provenance-badging
Created a configuration option for the upload directory and upload uri
The directory configuration can either be an absolute path or a relative one (relative to pylon's public directory)
The uri configuration is used to declare where an external web server serves the content from (note that this assumes it's being served under the same domain, hence a clarification in hypermedia.py)
Added alternative text to representative image on badge information page (since we allow badge create with no upload possibility)
Uploads can now be served from another domain (badge links check for it)