Merge pull request #48 from pyghassen/master

Adding MVC architecture, and organizing the code more and adding some docs string. + coding style changes (PEP8)
Moving the db initialization because it needs to be in context