Make $baseUrl optional
Use localhost instead of NULL
Merge pull request #3 from andreiashu/baseUrl

"Make $baseUrl optional"
Thx for participating!