Refactored index.js and repository.js

 - Separated streams and tweets into their own routes and models.
Fixed models closing db connection.