this fixes #20
Merge pull request #21 from hxu/frontend

Frontend map directive and some services