Restructured source tree + more stuff

- Added interface between frontend and core webapp
- Added logging
- Changed setup process
- cleaner FCGI build