Sanitize whitespace in headers

Fixes #7.
Register rewrite rules on activation

Fixes #17. Props @pippinsplugins
Merge pull request #26 from thenbrent/master

Fix /pages references in WP_JSON_CustomPostType
Merge pull request #7 from WP-API/sanitize-header-values

Plugin breaks for titles with newlines
Merge pull request #17 from WP-API/rewrite-activation

Register rewrite rules during plugin activation
Bump to 0.7
Removed executable bit on all files.
Merge pull request #31 from tierra/remove-exec

Removed executable bit on all files.