Added API service, localStorage module, error state routes, minor clean up