Adding ADMIN_DIR_NAME to api request.
Fixed user roles not working correctly, issue #258.
Removed old code.
Changed Route::url to Route::get.
Fixed missing id= attribute.
Fixed white space and formatting.
Updated primary and foreign key values to be consistant with int(11).