Feature/rails3 custom fields api

Writing and reading custom fields for work packages (aka planning elements). Reading projects' custom fields. Querying existing custom fields.

Issues:

* https://www.openproject.org/issues/2564
* https://www.openproject.org/issues/2586