Refactor on rest javascripts

All javascripts now go in a namespace:
* adagios.rest.{{module}}.function();
rich check commands in objectbrowser/service

* PynagForm now supports macros and input fields (requires latest from pynag master)
* Improved javascript api
* Will put same in objectbrowser/host soon
New javascript api imported in base templates
improved macro support in check_command api
bugfix when edit service with no check_command
misc/templates/edit_check_command.html

tests with new javascript api
Merge branch 'master' of github.com:opinkerfi/adagios