added option to set projectid and sign from outside & fixed projectid spelling
escaping query params
hash to query function
some fixes