reorg code into core, edit and angular pieces
Merge pull request #72 from MapStory/reorg

reorg code into core, edit and angular pieces