added .idea to gitignore
introduced flask-restful, moved functions from views.py to api.py