Adds suports for subfolders
fix crash when getting undefined agent
Merge branch '0.2' of github.com:hems/theoricus into 0.2
Merge branch '0.2' of github.com:hi-res/theoricus into 0.2
removing base_path from URL before routing