Features/unified ip rest interface

http://jira.i2cat.net:8080/browse/OPENNAAS-1300

TODO: 
- Unify mask format. Accepted input format is currently the shot mask, but long mask is returned.
- Update CLI commands to use new API methods.