Added namespace support

Changed from folder based autoloader to namespaces.