Plan for the different functions in application.php:

Function planComment
initialize()
codeinit() Keep
content() Keep
dynamic_load($url, $config = array(), $type = MIDCOM_REQUEST_CONTENT, $topicid = null, $urlparser_prefix = null) Make a separate object. Keep the function for api compability.
finish()Keep
_process() Move to a separate command_execution service.
_handle($path = NULL)same as _proecss
_checkobject($object)same as above
& _loadconfig($object) Remove
_output()Remove
generate_host_url($host)Keep, but make dependent on a service
get_host_name()Keep, but make dependent on a service
get_page_prefix()Keep, but make dependent on a service
get_host_prefix()Keep, but make dependent on a service
& get_component_loader () Keep
& get_basic_nav($contextid)Remove
get_content_topic() Keep, but change semantics. (topic will be != from page
get_context_data($param1, $param2 = null)Make a wrapper around context objects.
_set_context_data($value, $param1, $param2 = null) Remove
set_custom_context_data ($key, &$value, $contextid = null) Change to wrapper.
& get_custom_context_data($param1, $param2 = null)
get_current_context ()
substyle_append ($newsub) Move to a service
substyle_prepend($newsub) ""
load_library($path)Remove
_populate_client ()Remove
get_client()Remove (this should be a service)
header($header, $response_code = null) Remove
_create_context($id = null)Remove
_set_current_context($id) remove
get_status() Remove
& get_service($name)Keep
set_pagetitle($string) Keep -> but not in current form
generate_error ($httpcode, $message)Remove (move to exceptions)
load_snippet($path) Remove
serve_snippet (& $snippet) Remove
serve_attachment(& $attachment, $expires = -1)Remove (attachments should be a separate service
_exec_file($component)Remove
get_midgard() Keep Until 3.2
add_jsfile($url, $prepend = false) Keep as wrapper
add_jscript($script, $defer = "") Keep as wrapper
add_object_head ($script, $attributes = null) Keep as wrapper
add_meta_head($attributes = null)Keep as wrapper
add_style_head($script, $attributes = null)Keep as wrapper
add_link_head( $attributes = null )Keep as wrapper
add_jsonload($method) Keep as wrapper
print_jscripts() Keep as wrapper
print_jsonload() Keep as wrapper
print_head_elements() Keep as wrapper
relocate($url, $response_code = 302)remove
_showdebuglog($count) remove
bind_view_to_object(&$object, $page_class = 'default')Move to some command service
set_26_request_metadata($lastmodified, $permalinkguid)remove
get_26_request_metadata($context = null)remove