Major changes

Completely rewritten tweet size calculation and trimming
Added index.php
Moved DB connection to config.php