refactor beego.go to set default config value only once
Add daemon mode support (Linux only)

Add daemon mode support in order to run the app in the background.
Only works on Linux.