Added references to main
Corrected configuration setting key type
Decoupled server and configuration loading
Added some documentation
Small changes to server
Added class prefix in router member access
Partially ported API to TypeScript and added JQueryPromise interfaces
Ported Township model to TypeScript + JQueryPromise
Ported Document model to TypeScript + JQueryPromise