better response code for phases endpoint

if the project or version doesn't exist 404 instead of empty versions tag
is returned
better response code for builds endpoint

if the project or version doesn't exist 404 instead of empty builds tag
removed unused resource path - build states
added limit query parameter on builds request
fixed resources service - href shows host and port as well