Plugin Registration

* find out if there are any plugins in the plugins folder
* validate the plugins
* register the plugins
* added base plugin tests
* making this php 5.4 compatible only for now due to use of short array syntax in some classes