Added restful api and tidied up code
Updated api to return more values
Updated api and changed timeout length
Updated restful api
Merge pull request #1 from darylhedley/feature/restful-api

Feature/restful api