treat app protocol as local scheme

Fix rogerwang/node-webkit#1255