refactoring
using more utility methods from api
fixed error handling
error handling for lodlive rest interface