Externalization of models

1) Created file models.py so that models are separated from the handler
2) Imported models.py into main.py
3) Updated references to models (instead of Topic(...) we now use
models.Topic(...))