Merge pull request #9 from pmrowla/master

use flask-restless
move api stuff into its own file