Added packaging of rest api and inclusion of javadoc and restapi in distribution