reorganized code, put HTTP API into Angular Service..