Completed Application API

Added service_count() and service_at()
implemented service::count() and service::at()
Function order in header now matches source