SQL fixes and refactoring.

*   Added missing semicolon
*   Refactored code to match Wikimedia database style

Change-Id: I27d3cae950d3305622889db6730b2db6040f33a6
Filled out most of SpecialBadgeIssue logic.

*   Error handling
*   Assertion insert (mostly)
*   i18n

TODO:
*   Figure out what the final assertion table will look like (image?)
*   Actually hook up assertion insert to final schema

Change-Id: I13619b6e4cc6fe9149a0fd1cf00aa8b669978f9e
SQL renaming.

Change-Id: Id89200d9dfa7e680b280d083e9fcb9fc8d6a03ce
Merge pull request #9 from donyu/badgeissue

Badge issue skeleton implementation
SQL image changes, added insert statement.

*   SQL schema changed to assume image as a URL
*   Other minor SQL fixes
*   Added insert logic to SpecialBadgeIssue
*   Cleaned error handling in SpecialBadgeIssue

Change-Id: Ieb83e66ff5721ce98f114f2eaaf8cbc530478f4d
Merge branch 'master' of https://github.com/donyu/OpenBadges
Merge branch 'master' of https://github.com/donyu/OpenBadges
obl_name already unique, removed index.

Change-Id: I08575859776b5ca2b3f59c48a3877ecc60058a0f
Merge branch 'master' of https://github.com/donyu/OpenBadges
update special badge create

Change-Id: I77248e9e8f2f76d51ab896689f61eb71fd7a99d3