[#136] reject promise if API or version not found

- return `$q.reject(404)` if either API or version not found
- also set a flash.error in those situations, to alert the user
Rebuilt UI distribution
Merge branch 'hotfix/136'

Close #136