Consolidate commands and fix bugs in profile.cpp

Got profile.cpp ready to send whatever content the interface guys need.
Add integrated developer console

Added a developer console that allows full testing of scripts that
require login as it's built into the hub. That means it also requires
developer rights. (Also fixed a bug in main.cpp)