Added Apache-2.0 license, fixed some bugs, made the support code for controllers, started on Security Area