[JS] Fix bugs in push

Fix issue with push against .NET backends that reject a default
template name
Allow gcm template to be a object as well
Fix bug with custom APIs when content-type response header is not
present
[JS] Add test case for null content-type
Merge pull request #426 from phvannor/netpushfixes

[JS] Updates for push against .NET backends