Fixing some issues with .htaccess, redesigning wrapi, adding some getter functions to api