Moved exercise json generation from acts-as-api to lib, partially cause
deployment to sub dirs and url helper in models dont really work
together.
Merge pull request #198 from jamox/exercise_json

Moved exercise json generation from acts-as-api to lib