Update lib_api.php

url encode $method
Merge branch 'master' of github.com:cooperhewitt/flamework-api
notes to self