Added $custom_routes option to Restful API, header() method to Controller that checks headers_sent()