Removing unecessary api.php file.
Adds extended API include and fixes some warnings related to extensions.
Adds ignore rules for REST API folder in order to exclude .htccess and work files.
Minor style changes.