Ported datasets homepage to javascript, made router robust, added functionality to api and javascript models.