Big commit. Will try to do atomic ones in the next changes.
Changed database to use postgresql and used Thin instead of Webrick.
Merge remote-tracking branch 'origin/development'