Added versions controller to webapp.
Added webapp routing.
Added some error checking in the API and webapp.