Jsonrpc communicates with search

When the the api server is called it calls the search function. Changed the api server to use port 7586 to avoid conflict with search server. Created the namespace nhsapi for global variables and functions in the api part.
Merge branch 'master' of https://github.com/luuse/NoHassleShare