Merge pull request #16 from zelgerj/master

fixed memory leaks. added new function
Merge pull request #17 from zelgerj/master

added new function appserver_get_http_response_code()
Merge pull request #18 from zelgerj/master

added userland function appserver_get_envs()
Merge pull request #20 from zelgerj/master

fixed #19, cleanup and minor build refactoring
added appserver_session_init function