[api] initial porting to rails 4
[webui] initial porting - compass is not yet ready ;(
update gemfile.locks