Modified program structure.

 - Added mongoose
 - Split controllers, models and server