add utility functions

hostFromUrl, resourceFromUrl, toString added
toString needed because of gcc bug 52015
listeners and networkWorker added
add token class prototype
expand ServiceConfiguration
fix comment
partially implement token request
few minor fixes
listeners replaced by c++11 features
Service constructor signature fixed

added missing const modifier
Compiler flags reorganized

files in test directory are built with their own flags now
Merge pull request #9 from swat32exe/partially-implement-token-request

Partially implement temporary credential request
Implement utility functions

implemented functions hostFromUrl, resourceFromUrl
added normalizeUrl
Add url normalization to ServiceConfiguration constructor

parameters tokenRequestUrl, authorizeUrl, tokenExchangeUrl are now normalized
Add tests for normalizeUrl, hostFromUrl, resourceFromUrl functions
Parameters of utility functions are now passed by reference where it's possible

urlEncode, urlDecode, hostFromUrl, resourceFromUrl signatures modified
Asserts for incorrect url in getHostPosition added
Const modifiers added to local variables

in functions getHostPosition, hostFromUrl, resourceFromUrl const modifier added to local variables
Project structure altered

test structure is plain now
Utility.h moved to src folder
corresponding changes to SConstruct made
Fixes in utility functions

regexp in normalizeUrl fixed
assertion in getHostPosition fixed
Merge pull request #12 from swat32exe/add-and-implement-url-functions

Implement functions for working with url