1st euler works, returns JSON via http
cleaned up URL regexp and normalized functions a bit
added tests