Create pa at prescription

changes for creating a PA on the server side (within the controller) instead of via javascript calls directly from the client.

Still to implement:
* make the cover_my_api library public & integrate it
* provided_coded_reference code for the drugs coded reference