[api] initial porting to rails 4
[api] debug some failures
more methods
deprecated
attribute_meta port
match group
fix routes for build controller