add legacy controller\Resource, controller\Test.
add autoload function.